import request from "@/util/request";


export function getWarningEvent(data){
    return request({
        method: "POST",
        data: data,
        url: '/event/selectWaring'
    })

}
export function getWarningTop(data){
    return request({
        method: "POST",
        data: data,
        url: '/event/getWarningTop'
    })

}
export function getWarningTop5(data){
    return request({
        method: "POST",
        data: data,
        url: '/event/getWarningTop5'
    })

}

export function getWarning(data){
    return request({
        method: "POST",
        data: data,
        url: '/api/algor/selectAllAlgor'
    })}

export function getOneWarning(algorId){
    return request({
        method: "GET",
        url: '/event/getone/'+algorId
    })}

export function getDevice(data){
    return request({
        url: '/api/sys/dev/listwhere',
        method: "post",
        data:data
    })
}
export function wipeWaring(data){
    return request({
        method: "POST",
        data: data,
        url: '/event/wipeWaring'
    })
}
export function pushWaring(data){
    return request({
        method: "POST",
        data: data,
        url: '/event/pushWaring'
    })
}
export function inspectWaring(data){
    return request({
        method: "POST",
        data: data,
        url: '/event/inspectWaring'
    })
}
export function getDeviceNumber(){
    return request({
        method: "GET",
        url: '/event/getDeviceNumber'
    })
}
export function getYiWuAndYanHuo(){
    return request({
        method: "GET",
        url: '/event/getYiWuAndYanHuo'
    })
}
export function getJiBie(){
    return request({
        method: "GET",
        url: '/event/getJiBie'
    })
}
export function getSanShi(){
    return request({
        method: "GET",
        url: '/event/getSanShi'
    })
}
